package concurrent.c_012_ThreadPool;

import java.util.concurrent.Executor;

/**
 * 认识 Executor
 */
public class T01_Executor implements Executor {
    public static void main(String[] args) {
        new T01_Executor().execute(() -> System.out.println("hello executor"));
    }

    @Override
    public void execute(Runnable command) {
        // new Thread(command).run();
        command.run();
    }
}